package com.giscloud.amp.dao;

import com.giscloud.amp.entity.YunServiceInfo;
import com.giscloud.amp.entity.YunServiceInfoExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface YunServiceInfoMapper {

    long countByExample(YunServiceInfoExample example);

    int deleteByExample(YunServiceInfoExample example);

    int deleteByPrimaryKey(Long serviceId);

    int insert(YunServiceInfo record);

    int insertSelective(YunServiceInfo record);

    List<YunServiceInfo> selectByExample(YunServiceInfoExample example);

    YunServiceInfo selectByPrimaryKey(Long serviceId);

    int updateByExampleSelective(@Param("record") YunServiceInfo record, @Param("example") YunServiceInfoExample example);

    int updateByExample(@Param("record") YunServiceInfo record, @Param("example") YunServiceInfoExample example);

    int updateByPrimaryKeySelective(YunServiceInfo record);

    int updateByPrimaryKey(YunServiceInfo record);

    List<Map<String,Object>> countServiceInfo(String startTime, String endTime);
}